package com.wanmait.zaisousuo.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wanmait.zaisousuo.pojo.Article;
import com.wanmait.zaisousuo.pojo.Garbage;
import com.wanmait.zaisousuo.util.Pager;

import java.util.List;

public interface GarbageService extends CommonService<Garbage>{
    PageInfo<Garbage> findAllGarbageByConditions(Integer typeId, Integer textureId, Integer pageNum);
    void updateCountById(Integer id);
    PageInfo<Article> findAllByConditions(Integer typeId, Integer textId, String orderBy, Integer pageNum);
    List<Garbage> findAllGarbageByState(Integer state);
    Integer updateReduceCountById(Integer id);
    List<Garbage> findByUserId(Integer id);
    Boolean changeState(Boolean flag,Integer id);
    void clearCache();
    Integer getDataCount(String key,Integer pageNum);
    List<Garbage> findAllGarbageBySolr(String key, Integer pageNum, Pager pager);
    List<Garbage> findGarbageByName(String name);

}